module.exports = {
    packagerConfig: {
      asar: true,
      download: {
        mirror: "file:///D:/Electron/my-electron-app/electron-cache/",
        cache: "./electron-cache",
        force: false
      },
      electronZipDir:'./electron-cache/electron/25.9.8/' // 这行☆☆☆☆☆
    },
    makers: [
      {
        name: '@electron-forge/maker-squirrel',
        config: {
          name: 'my_electron_app'
        }
      },
      {
        name: '@electron-forge/maker-zip',
        platforms: ['win32']
      }
    ],
    // 添加离线配置 ☆☆☆☆☆
    electronRebuildConfig: {
      onlyModules: [],
      force: false,
      offline: true
    }
};
